import http from '../utils/request'
// 教师登录
export const getTeacher = (body) => {
  // console.log(body)
  return http.post('/teacherLogin', body)
}
// 学校登录
export const getSchool = (params) => {
  return http.post('/schoolLogin', params)
}
// 管理员登录
export const getManager = (params) => {
  return http.post('/adminLogin', params)
}

// 获取教师列表
export const getTeacherList = (params) => {
  return http.get('/teacherList', params)
}
// 删除教师列表列
export const delTeacher = (params) => {
  return http.post('/delTeacher', params)
}
// 修改教师信息
export const upTeacher = (params) => {
  return http.post('/upTeacher', params)
}
// 新增教师数据
export const addTeacher = (params) => {
  return http.post('/addTeacher', params)
}
// 注册
export const registerReq = (params) => {
  return http.post('/registerReq', params)
}
// 修改密码
export const changePass = (params) => {
  return http.post('/changePass', params)
}
// 获取学校列表
export const schoolList = (params) => {
  return http.get('/schoolList', params)
}
// 删除学校列表列
export const delSchool = (params) => {
  return http.post('/delSchool', params)
}
// 修改学校信息
export const upSchool = (params) => {
  return http.post('/upSchool', params)
}
// 新增学校数据
export const addSchool = (params) => {
  return http.post('/addSchool', params)
}
// 学校注册
export const regSchool = (params) => {
  return http.post('/regSchool', params)
}
// 学校修改密码
export const upsPass = (params) => {
  return http.post('/upsPass', params)
}
// 获取学校信息
export const getSchoolDetails = (params) => {
  return http.post('/getSchoolDetails', params)
}
// 获取教师信息
export const getTeacherInfo = (params) => {
  return http.post('/getTeacherInfo', params)
}
// 学校修改学校信息
export const changeMyInfo = (params) => {
  return http.post('/changeMyInfo', params)
}
// 教师修改教师信息
export const upTeacherInfo = (params) => {
  return http.post('/upTeacherInfo', params)
}
